/*********************
* Author:Dzlua
* QQ:505544956
* time:2016/12/02
*/
#ifndef __EDUI_LUABUTTON_H__
#define __EDUI_LUABUTTON_H__

#include "../../controls/Button.h"
#include "LuaLabel.h"

#ifdef EDUI_USE_LUAPLUS

EDUI_NAMESPACE_BEGIN

class LuaButton : public LuaLabel
{
public:
    LuaButton(Button* button);
    virtual ~LuaButton();
    static void* GetInterface(void* data);
    virtual void Release();
    static void Register(LuaState *L);
public:
    void SetPressedOffset(int x, int y);
    int GetPressedOffset(LuaState *L);
};

EDUI_NAMESPACE_END

#endif
#endif